package com.zhiy.com.estation.ui.fragment.find.back.password;

import com.zhiy.com.estation.api.Api;
import com.zhiy.com.estation.api.ApiResult;
import com.zhiy.com.estation.model.User;

import io.reactivex.Flowable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 *
 * Created by Zyh on 2016/12/3.
 */
public class FindPassModel implements FindPassContract.Model {
    @Override
    public Flowable<ApiResult<User>> findBacPass(String name) {
        return Api.getInstance().mService
                .findPass(name)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread());
    }
}
